<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/1/13 0013
 * Time: 15:53
 */

namespace core\SSDB;

/**
 * All methods(except *exists) returns false on error,
 * so one should use Identical(if($ret === false)) to test the return value.
 */
class SimpleSSDB extends SSDB
{
    function __construct($host = "", $port = "", $timeout_ms = 2000){
        if ($host == '' && $port == '') {
            $host = config('ssdb.host');
            $port = config('ssdb.port');
            $timeout_ms = config('ssdb.timeout_ms');
        }
        parent::__construct($host, $port, $timeout_ms);
        $this->easy();
    }
}